package cn.shop.front.service;

import cn.shop.base.MyService;
import cn.shop.front.entity.gamebind.GameBind;
import cn.shop.front.entity.gamebind.MerchantAlias;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-14 10:23
 * @description :
 */
public interface GameBindService extends MyService<GameBind> {

	/**
	 * 通过用户号和商户号获取绑定游戏列表
	 *
	 * @param uid 用户号
	 * @return 返回结果
	 */
	List<Map<String, Object>> bindList(long uid);

	/**
	 * 获取某分区下的游戏绑定记录
	 *
	 * @param partitionId 分区编号
	 * @return 返回结果
	 */
	List<Map<String, Object>> partitionBinds(long userId, long partitionId);

	List<Map<String, Object>> allGame();

	List<Map<String, Object>> allGame(long uid);

	List<Map<String, Object>> allPartitionByGame(long gameId);

	Long getGameId(long partitionId);

	Map<String, Object> getGame(long partitionId);

	MerchantAlias checkAlias(String name);

	Long checkLogin(long uid, LocalDateTime time);

	List<Map<String, Object>> userGame(long userId);

}
